package com.five.dao.impl.backstage;

import com.five.dao.backstage.RoomDao;
import com.five.entity.backstage.TRoom;
import com.five.util.DBUtil;

import java.util.List;
import java.util.Map;

/**
 * @Author: 王登峰
 * @Description:
 * @Date: 2020/11/12 20:04
 */
public class RoomDaoImpl implements RoomDao {
    @Override
    public List<Map> selectRoom() {
        String sql = "select * from t_room join t_type on t_room.type_id = t_type.id ";
        return DBUtil.queryMap(sql);
    }

    @Override
    public int updateRoom(TRoom tRoom) {
//
        return 0;
    }

    @Override
    public int delRoom(TRoom tRoom) {
        return 0;
    }
}
